package cn.wsalix.user.form;

import java.util.Date;

import javax.validation.constraints.NotNull;

import lombok.Data;
import lombok.EqualsAndHashCode;

import org.springframework.data.domain.Sort.Direction;
import org.springframework.format.annotation.DateTimeFormat;

import cn.anlaser.form.CommonForm;

@Data
@EqualsAndHashCode(callSuper = false)
public class ChatForm extends CommonForm {
	@NotNull
	private Long userId;
	@NotNull
	private Long productId;
	@NotNull
	private Long issueId;
	@NotNull
	private String content;
	// 查询条件

	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")  
	private Date sendTime;
	private Direction direction = Direction.ASC;
	private boolean forward = true;

	private Long senderId;
	private Long receiveId;

}
